import TimTable from './TimTable'
import Timadd from './Timadd'
import TimDetail from './TimDetail';
import { useState } from 'react'
const Tenant_information_management = () => {
  const [state, setState] = useState(1)
  let com
  if (state == 1) {
    com = <div className='Tenant_information_management'><TimTable setState={setState}></TimTable></div>
  }
  else if (state == 2) {
    com = <div className='Tenant_information_management'><Timadd setState={setState}></Timadd></div>
  }
  else if (state == 3) {
    com = <div className='Tenant_information_management'><TimDetail setState={setState}></TimDetail></div>
  }
  return <>
    {com}
  </>

};

export default Tenant_information_management;
